﻿using lite;
using Csla;
using System.ComponentModel;
using System;

namespace iSun.Model
{
    [Serializable]
    [lite.Table]
    [Table("Set_DataEditTemplate", "EditID")]
    public class DataEditTemplate : BaseEntity
    {
        public DataEditTemplate()
        {
            //this.EditId = Int32.NewInt32();
        }
        [lite.Column(Name = "EntityName")]
        private System.String _EntityName;
        public System.String EntityName
        {
            get { return _EntityName; }
            set { _EntityName = value; }
        }
        [lite.Column,lite.PK]
        private System.Guid _EditID;
        public System.Guid EditID
        {
            get { return _EditID; }
            set { _EditID = value; }
        }

        [lite.Column]
        private System.String _HtmlContent;
        public System.String HtmlContent
        {
            get { return _HtmlContent; }
            set { _HtmlContent = value; }
        }
        
        [lite.Column]
        public int Width
        {
            get;
            set;
        }

        [lite.Column]
        public int Height
        {
            get;
            set;
        }

        public static DataEditTemplate CreateInstance()
        {
            return new DataEditTemplate();
        }
    }
}
